const myDate = date => {
    let myDate = new Date(date)
    let a = myDate.getFullYear()
    let b = myDate.getMonth() + 1
    let b1 = String(b).padStart(2, '0')
    let c = myDate.getDate()
    let c1 = c > 10 ? c : `0` + c
    let str = `${a}-${b1}-${c1}`
    return str
}
export { myDate }